﻿<%@ page language="java" pageEncoding="UTF-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<title>上海高桥分公司问题管理平台</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link href="css/ui.theme.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path%>/js/jquery-1.7.js"></script>
<script type="text/javascript" src="<%=path%>/js/util.js"></script>
<script type="text/javascript" src="<%=path%>/js/js.js"></script>
<script type="text/javascript" src="<%=path%>/js/artDialog/artDialog.js"></script>
<script type="text/javascript" src="<%=path%>/js/user.js"></script>
<script type="text/javascript" src="<%=path%>/js/jquery.ui.core.js"></script>
<script type="text/javascript" src="<%=path%>/js/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="<%=path%>/js/My97DatePicker/WdatePicker.js"></script>
</head>

<%
User user = (User) session.getAttribute(Constants.SESSION_USER);
%>
<body>
<div class="webbody">
	<div class="head">
		<div class="logo"><img src="images/top_zhlh.jpg" /></div>
		<div class="btn"><input src="images/top_bt.png" type="image" onclick="logout()" /></div>
		<div class="clear"></div>
	</div>
    <div class="h_sub">
      
<table width="99%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td class="tab">欢迎使用上海高桥分公司问题管理平台，请使用IE7及以上浏览器进行操作</td>
 <td class="tab" align="left"><a href="http://10.107.9.20/shsh/default.htm" target="_blank" style="font-weight:bold;color:red;font-size:20pt;">链接至公司安全信息网</a></td>
        </tr>
      </table>
  </div>
<div class="body1">
		<div class="list">
			<div class="list_top" style="margin-left: 2px"><img src="images/list_top.png" /></div>
			<div class="list2" id="mainMenuDiv">
				<%@include file="menu.jsp" %>
			</div>
		</div>
		<div class="body2" id="mainContentDiv">
			<%
			if (user == null) {
			%>
			<%@include file="login.jsp" %>
			<%
			}
			%>
			<%
			if (user != null) {
			%>
			<%@include file="user_infor.jsp" %>
			<%
			}
			%>
		</div>
	</div>
	
	<div class="footer"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="210" height="24">&nbsp;</td>
    <td width="545">&nbsp;</td>
    <td width="245" style="text-align:right;">上海高桥分公司问题管理平台&nbsp;</td>
  </tr>
</table>
</div>
</div>
</body>
</html>

<script type="text/javascript">
function logout() {
	openWaitingDialog('waitingDialog');
	$.ajax({
		type:'post',
		url:'logout_process.jsp',
		data:{
		},
		success:function(data,state,xmlhttp){
			var obj = null;
			try {
				obj = eval('(' + data + ')');
			} catch (e) {
			}
			if (typeof(obj.isSuccess) != 'undefined') {
				if (obj.isSuccess == 'true') {
					loadPageSection('<%=request.getContextPath()%>/menu.jsp', 'mainMenuDiv');
					loadPageSection('<%=request.getContextPath()%>/login.jsp', 'mainContentDiv');
				} else {
					$.dialog.alert(obj.error);
				}
				closeWaitingDialog('waitingDialog');
			}
		}
	});
}
</script>
